Relative, Absolute, Fixed, & Sticky Positioning in Bricks Builder - Fix Your Attachment Issues!

Поделиться
HTML-код
  • Опубликовано: 13 июн 2024
  • It's time to get therapy for your attachment issues!
    If you want to step up your web design game, you've gotta be a master of positioning elements. That means knowing the difference between static, relative, fixed, absolute, and sticky positions.
    In this video, I explain each position and how it works. I also give a quick tip on getting sticky elements to behave on mobile devices.
    While this video doesn't cover every detail of every position, it's a great starting point that should give you enough info to use these positions in your work. As you do that, you'll get better at them over time.
    I reply to all questions, so you don't hesitate to drop a comment if you need more clarification on anything.
    My Inner Circle: digitalambition.co/inner-circle/
    AutomaticCSS: automaticcss.com
    Frames: getframes.io
    00:00 Intro
    01:20 Why Positions Are Confusing
    02:55 Static Position (Default)
    04:53 Fixed Position
    07:15 Static Coordinates Don't Work
    08:00 Position Relative
    12:00 Position Absolute
    22:50 Super Important Absolute Feature
    26:52 Position Sticky
    37:03 Recap

Комментарии • 80

  • @Gearyco
    @Gearyco  Год назад +5

    What was your biggest "aha" moment with positioning?

    • @danstevens1974
      @danstevens1974 Год назад +2

      pretty much one big moment for me!

    • @penatechnologies492
      @penatechnologies492 Год назад

      Creating the stretch channel for the fixed child. It no longer behaves like the idiot child of the family!

    • @alperenozkan
      @alperenozkan Год назад

      absolute to absolute was my aha moment Kevin. I was thinking parent must be relative. Thanks for another great tutorial.

    • @monicabjerke3141
      @monicabjerke3141 4 месяца назад

      That "relative" is relative to the static position

    • @gnentrepreneur
      @gnentrepreneur 4 месяца назад

      Many aha moments with you Geary! I guess one aha moment that I think it made me to get it a bit better was when you explained how to control the container, or div instead of the image itself!

  • @barbaranewerla
    @barbaranewerla Месяц назад

    Just saved my life once again :-). Sticky did not work as expected. Rewatching solved the problem. Never forget to think about the height of the parent...

  • @VijayKumarIM
    @VijayKumarIM Год назад +2

    Your crazy understanding of CSS is just awesome. The explanation is even better and enjoyable.

    • @Gearyco
      @Gearyco  Год назад

      I appreciate that!

  • @michaelageyev9864
    @michaelageyev9864 Год назад +1

    Niche videos don't get as much hype as generic videos, but I appreciate the niche help on understanding the positions for bricks builder.

  • @TakuapaFriends
    @TakuapaFriends Год назад +3

    This is one of the all time greats for stacking / inlining and how style positioning work. What a lot of older page builder tried to hide from us so we thought we need the clunky stuff. But learning positioning, having a great builder like Bricks or Cwicly enabling using this fully transparent and easy employable gives such a tremendous freedom of design. Fast and proper...

  • @jankosara9742
    @jankosara9742 7 месяцев назад

    this tut is just hilarious !! Your expression but also the content is crazy good! :)

  • @mcloud1234
    @mcloud1234 10 месяцев назад

    Hey Kevin, I just got back from the Future because, in one of your future videos (8. August 2023), I got told to reach back to see the answer to one of my questions. Thank you from the Future! ;)

  • @ThierryC-te3rx
    @ThierryC-te3rx 11 месяцев назад

    Totally underrated !

  • @captainfire74
    @captainfire74 3 месяца назад

    I've rarely seen clearer content ! Thank you so much ! ;)

  • @barbaranewerla
    @barbaranewerla 4 месяца назад

    Absolutely brilliant, priceless. Finally understood.

  • @issakhlief
    @issakhlief 7 месяцев назад

    You are a great teacher in nature, many people have the knowledge but don't have the charisma to explain it in a nice way

    • @Gearyco
      @Gearyco  7 месяцев назад

      Thanks a million

    • @Gearyco
      @Gearyco  7 месяцев назад

      Thanks a million

  • @pandaosa9
    @pandaosa9 Год назад +2

    Thanks, Kevin. You explain concepts really well. I've (sort of) figured this out through trial and error, but it's nice to have it all in one place. I can see figuring things out so much quicker after having watched this.

  • @chrisfoti1123
    @chrisfoti1123 Год назад

    Thanks, Kevin! Another really helpful video!

  • @danstevens1974
    @danstevens1974 Год назад

    Another excellent lesson Kevin. Thank you. Love soaking this stuff up!

  • @DenGradel
    @DenGradel Год назад

    Splendid! Thanks for this incredible useful piece of information!

  • @AlwaysSlimShadyBro
    @AlwaysSlimShadyBro 4 месяца назад

    Great Use of stretch and sticky... Love it

  • @kareem2928
    @kareem2928 Год назад

    Thank you Kevin. Perfect Explanations, Mandatory video .

  • @nemanjapuhalo4612
    @nemanjapuhalo4612 4 месяца назад

    I love the flexbox stretch trick! I always used the media queries, but now I'm switching to that :)

  • @pedrocosta3818
    @pedrocosta3818 Год назад +1

    Hey Kevin, thank you! And I thought there was nothing else to learn about positioning...The fix (wrapper) to responsive sticky elements is amazing!

  • @eucalyptech
    @eucalyptech 10 месяцев назад

    Missed that one ! Thanks for the reminder in PB101 L17 and thank you Kevin for your time and work 😃

  • @michailgiannopoulos5274
    @michailgiannopoulos5274 Год назад

    Saw so many videos about positioning elements, only yours made my brain click and understand it. Thank you!

    • @Gearyco
      @Gearyco  Год назад +1

      Yay! Love to hear that.

  • @ReubenHochstetler
    @ReubenHochstetler Год назад

    I didn’t know absolute would attach to the first non static element. Very helpful video. It helped make much sense of attachment. 😂

  • @mubindidit230
    @mubindidit230 Год назад

    That's an absolute GEM!!!
    It would be great if you could make a video about HTML tags and the best practices for using them in a website design.

  • @gnentrepreneur
    @gnentrepreneur 4 месяца назад

    You sure know how to teach, thank you so much 😊

    • @Gearyco
      @Gearyco  4 месяца назад

      My pleasure 😊

  • @KshitijShah89
    @KshitijShah89 Год назад +1

    This was a very informative watch for me as a beginner! Thank you

    • @Gearyco
      @Gearyco  Год назад

      Glad it was helpful!

  • @techfairyrina
    @techfairyrina Год назад

    great content, Kevin :) Thank you!

    • @Gearyco
      @Gearyco  Год назад

      Glad you liked it!

  • @thorsten-roever
    @thorsten-roever Год назад

    Thanks

  • @VerbiVeritatis
    @VerbiVeritatis Год назад

    aha moment is the simple way you navigated the reference points.
    relative = to fixed starting point
    fixed = viewport
    absolute = first non-static parent

  • @jerryb6728
    @jerryb6728 10 месяцев назад

    Great stuff..
    An idea for future conte t would be common use cases for all these positioning presets

  • @andreslotta3637
    @andreslotta3637 Год назад

    Great video as always, Kevin! Just one small note: You mention that absolute elements are positioned relative to the first relative parent. But actually they are positioned relative to the first "positioned" parent - which can be relative, absolute, fixed or sticky.

    • @andreslotta3637
      @andreslotta3637 Год назад +1

      Ignore my comment. One should finish the video before making any comments. 😅

  • @filmgenius2
    @filmgenius2 Год назад

    I can’t wait! Another helpful video would be one showing us how to add schema markup to accordions when using them for FAQ.
    Could you also do a video on the current Grid that’s in Bricks Builder? You made a video explaining what it is, but a more detailed video that talks about how to make a hero, sections etc using grid. Also possibly designing a figma file using bricks.

    • @Gearyco
      @Gearyco  Год назад

      I’ve done a lot of tutorials showing grid. What do you mean designing a figma file with bricks?

    • @filmgenius2
      @filmgenius2 Год назад

      @@Gearyco converting a Figma design into bricks. ?

    • @filmgenius2
      @filmgenius2 Год назад

      Thank you for responding btw

  • @hathanh119x
    @hathanh119x 4 месяца назад

    Thank you, Kevin, the video is great and very helpful. I'd like to ask something: how do you manage to display the outlines of sections, containers, and blocks when you hover the mouse over them? Mine doesn't show these outlines and they only appear when I actually click on the element, which is quite inconvenient.

    • @Gearyco
      @Gearyco  4 месяца назад

      Hmm. This is the default behavior of Bricks.

  • @matthiasbaudrexl943
    @matthiasbaudrexl943 Год назад

    Thanks! I tryed the sticky positioning out with a DIV an some text inside istead of the image. But then the DIV isn't sticky... with the image it worked. Anyone have an idea? Thanks!

  • @superoverdrive8628
    @superoverdrive8628 Год назад

    Kevin, dedicated accessibility videos would be super helpful.
    One thing I cant figure out is why pricing plan layouts should have individual header and footer in the cards. Shouldn't they just be a list like features and such are?
    And one more thing, a11y colors, even Twitter logo blue against white bg doesnt even achieve AA. But when you look at it, there is plenty of contrast. It's not always better and accurate at all to follow the a11y contrast ratio but I've seen sites solve this with a high contrast mode you can turn on.

    • @Gearyco
      @Gearyco  Год назад +4

      May do some dedicated accessibility videos.

  • @maksfischer7477
    @maksfischer7477 Год назад

    This is a bit random, but what do you think about justified text in webdesign? I know there are a bunch of articles claiming it's bad for web, because of all the resolutions and devices and that it is rather for printed text. But nowadays with clamp functions and fluid text it seems to look good on most screen sizes and feels easier to read because every line starts and ends at the same vertical line.
    I thought I'd ask you because I'm watching lot of your stuff lately and I like your approach and way of thinking.

    • @Gearyco
      @Gearyco  Год назад +1

      Avoid justified text on the web for sure

  • @mrfairycake4333
    @mrfairycake4333 7 месяцев назад

    brill

    • @Gearyco
      @Gearyco  7 месяцев назад +1

      Not sure what that means.

  • @jcc5018
    @jcc5018 Год назад

    hi, great video as usual.
    Couple comments/ questions:
    1. For "sticky" navigation (top bar menu) would it be better to use sticky or fixed if I want the navigation to be always visible. If sticky, I imagine I'd have to put the nav element outside of any section?
    2. you reference automatic CSS a lot and I get that it is helpful, but $70 is a lot of money for some people, or at least me when I'm not making any money yet. When CSS frameworks like Bootstrap and tailwind are available for free and offer the same kind of classes, its hard to justify that cost. But from my research it also appears Bootstrap and tailwind may be a bit difficult to work within WordPress. (not really sure why that would be the case) But do you have any experience trying to utilize those frameworks? I know for your purposes ACSS is helpful, but could you try to do your courses with the assumption that not everyone has that plugin. I know you do try to show both ways sometimes.
    EDIT: I didn't realize you created ACSS. -- of course you are going to promote it. But the point still stands if you can take it into consideration.
    3. Do you have a course on creating dynamic elements like dropdown lists, modals, popups, etc? I know most use some form of JS, but can they be done via CSS alone?
    Thanks again.

    • @Gearyco
      @Gearyco  Год назад

      1. Fixed position.
      2. ACSS and Tailwind are antithetical in philosophy. One is not like the other. Bootstrap is outdated no longer relevant IMO.
      Only ACSS is truly designed to work in page builders.
      My free course, Page Building 101, shows website creation without a framework.
      3. There are CSS-only versions, but you typically need JS to check all important boxes.

  • @Rollclick
    @Rollclick Год назад

    Is this how I would make a transparent header that overlaps with my hero section?

  • @pedrorodriguezjimenez5738
    @pedrorodriguezjimenez5738 Год назад +1

    How do you do the scretch part on minute 34:10 ? Awesome video btw

    • @Gearyco
      @Gearyco  Год назад +1

      It's a class in ACSS

    • @pedrorodriguezjimenez5738
      @pedrorodriguezjimenez5738 Год назад +1

      @@Gearyco What's that? can I do it without plugins? Thanks for your quick answer man!

  • @raziel8799
    @raziel8799 Год назад

    I feel like if the words relative and absolute would be switched the concept would be a lot more intuitive.
    You would think that you need an absolute object to position something relative to it not the other way around 😅

    • @Gearyco
      @Gearyco  Год назад

      Relative shouldn’t be a position option. Everything is relative to something. It’s a redundant word that they assigned a specific meaning to.

  • @filmgenius2
    @filmgenius2 10 месяцев назад

    I'm taking a guess that the sticky position can't be used at the same time as a Sticky Header?

    • @Gearyco
      @Gearyco  10 месяцев назад

      Yes, they can be used at the same time.

  • @yasmeenkaram9780
    @yasmeenkaram9780 Год назад

    Please Upload a step by step video creating a bricks builder home page without coding or CSS, it seems simple for youtube experts but for us beginners I'm sort of lost :(
    Thank you Kevin!

    • @Gearyco
      @Gearyco  Год назад

      I have this in the inner circle

    • @yasmeenkaram9780
      @yasmeenkaram9780 Год назад

      @@Gearyco Would the inner circle help me if I'm a total beginner and not planning on digging deeper?
      I only want to build my own website by my own without coding

    • @Gearyco
      @Gearyco  Год назад

      @@yasmeenkaram9780 we just started a bricks beginner series where I teach my 10 year old daughter web design in bricks from scratch so it’s perfect for total beginners. She has zero experience.

    • @yasmeenkaram9780
      @yasmeenkaram9780 Год назад

      @@Gearyco I joined the inner circle today and checked the video I was speechless of this genius idea exactly what I needed!
      Million thanks
      🙏

    • @Gearyco
      @Gearyco  Год назад

      @@yasmeenkaram9780 yay! Glad it's helpful!

  • @gnentrepreneur
    @gnentrepreneur 4 месяца назад

    Today I took the time to copy Kevin's images custom sizes, the following is the code to use in your code snippet (recommended instead to mess with Child theme php function). After that, I couldn't see the new image sizes thumbnails, solution free plugins Regenerate Thumbnails and Buala! :
    add_theme_support('post-thumbnails');
    add_image_size('image-480', 480, 9999);
    add_image_size('image-640', 640, 9999);
    add_image_size('image-720', 720, 9999);
    add_image_size('image-960', 960, 9999);
    add_image_size('image-1168', 1168, 9999);
    add_image_size('image-1440', 1440, 9999);
    add_image_size('image-1920', 1920, 9999);

    • @gnentrepreneur
      @gnentrepreneur 4 месяца назад

      Initially the code was like the following, but for me, it worked like the above, but in case that this work for you/ or:
      add_theme_support('post-thumbnails');
      add_image_size('image-480', 480, 9999);
      add_image_size('image-640', 640, 9999);
      add_image_size('image-720', 720, 9999);
      add_image_size('image-960', 960, 9999);
      add_image_size('image-1168', 1168, 9999);
      add_image_size('image-1440', 1440, 9999);
      add_image_size('image-1920', 1920, 9999);
      if (!function_exists('my_custom_sizes')) {
      function my_custom_sizes($sizes) {
      return array_merge($sizes, array(
      'image-480' => 'Image 480',
      'image-640' => 'Image 640',
      'image-720' => 'Image 720',
      'image-960' => 'Image 960',
      'image-1168' => 'Image 1168',
      'image-1440' => 'Image 1440',
      'image-1920' => 'Image 1920',
      ));
      }
      }
      add_filter('image_size_names_choose', 'my_custom_sizes');

  • @jybevox
    @jybevox 6 месяцев назад

    My attachment issues are just... gone! :)

    • @Gearyco
      @Gearyco  6 месяцев назад +1

      Another person healed!

  • @Dougster123
    @Dougster123 Год назад

    Love the content, BUT why was it presented as a LIVE vid when it wasn't. Live content is great for interacting with the presenter - - I would have watched this later had it been posted as a regular vid. Argh! Excellent content and presentation though 👍

    • @Gearyco
      @Gearyco  Год назад

      It's called a premiere. It's a pretty common RUclips feature for new videos that just enables live chat on the first play through. You can then watch the video any time you want just like a normal video. Is there some sort of issue with that?